package H;

/**
 * 农民
 */
public class Farmer extends Game implements Attack,Treat,Mine{
    public Farmer (){}
    public Farmer (String name,int level){
        super(name,level);
    }

    @Override
    public void attack() {
        System.out.println("我是一个等级为"+this.getLevel()+"名为"+this.getName()+"的医生，我能够攻击");
    }

    @Override
    public void mine() {
        System.out.println("我是一个等级为"+this.getLevel()+"名为"+this.getName()+"的医生，我能够采矿");
    }

    @Override
    public void treat() {
        System.out.println("我是一个等级为"+this.getLevel()+"名为"+this.getName()+"的医生，我能够治疗");
    }
}
